package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.UserInterestsRedPacket;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper

public interface UserInterestsRedPacketMapper extends BaseMapper<UserInterestsRedPacket> {

    /**
     * 批量入库数据
     * @param userInterestsRedPackets
     * @return
     */
     Integer saveUserInterestsRedPacketBatch(@Param("list") List<UserInterestsRedPacket> userInterestsRedPackets);
    /**
     * 获取当天以及当天之前没有给钱的用户数据
     * @return
     */
    List<UserInterestsRedPacket> selectByFlipFlopTimeScope();
}
